package com.central.scheduler.common.task.subprocess;

import com.central.common.model.ResourceInfo;
import com.central.scheduler.common.task.AbstractParameters;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Tindy
 * @date 2021/12/20
 * @describe
 */
@Getter
@Setter
public class SubProcessParameters extends AbstractParameters {

    /**
     * process definition code
     */
    private Long processDefinitionCode;


    @Override
    public boolean checkParameters() {
        return this.processDefinitionCode != null && this.processDefinitionCode != 0;
    }

    @Override
    public List<ResourceInfo> getResourceFilesList() {
        return new ArrayList<>();
    }
}
